using System;

namespace EventBroker
{
	/// <summary>
	/// Declares an event as an eventTopic_p publication.
	/// </summary>
	[AttributeUsage(AttributeTargets.Event, AllowMultiple=true)]
	public sealed class CEventPublicationAttribute : Attribute
	{
		private string m_strTopic;

		/// <summary>
		/// Declares an event publication for an EventTopics with the specified m_strTopic and
		/// </summary>
		public CEventPublicationAttribute(string strTopic_p)
		{
			this.m_strTopic = strTopic_p;
		}

		/// <summary>
		/// The m_strName of the eventTopic_p the decorated event will publish.
		/// </summary>
		public string Topic
		{
			get { return m_strTopic; }
		}	
	}
}